package com.atguigu.gmall.cart.service;

import com.atguigu.gmall.cart.entity.CartInfo;
import com.atguigu.gmall.cart.vo.AddSuccessVo;

import java.util.List;

/**
 * @author lfy
 * @Description
 * @create 2023-07-31 9:32
 */
public interface CartService {
    String determinCartKey();


    AddSuccessVo addItemToCart(String cartKey, Long skuId, Integer skuNum);

    List<CartInfo> cartList(String cartKey);

    void updateNum(String cartKey, Long skuId, Integer num);

    void updateStatus(String cartKey, Long skuId, Integer status);

    void deleteCartInfo(String cartKey, Long skuId);

    void deleteChecked(String cartKey);

    void mergeCart();

    List<CartInfo> getChecked(String cartKey);
}
